package com.wgchao.authmanager.infrastructure.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.Date;

/**
 * @ClassName: AgencyInfo
 * @author: wgchao
 * @createTime: 2020/4/29 3:02 PM
 * @Description: 机构信息表
 */
@Entity
@Table(name = "am_agency_info", uniqueConstraints =
        {@UniqueConstraint(name = "agencyIdentify", columnNames = {"agencyCode"})})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AgencyInfo {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(length = 150)
    private String agencyCode;

    @Column(length = 150)
    private String agencyName;

    @Column(length = 200)
    private String  remark;

    private boolean disabled;

    @Column(length = 20)
    private String createUser;

    private Date createTime;

    @Column(length = 20)
    private String lastUpdateUser;

    private Date lastUpdateTime;

    private boolean del;

    @Version
    private Long version;
}
